OC.open({
	url: "/bbs2/",
	dataDict: 'http://localhost/testweb/json/bbs.json',
	maxLoops: 10,
	program: [
		{
			name:"点击注册按钮",
			type: 'Delay',
			object: 'a.btn_error',
			action: 'click',
			delay: 2000
		},
		{
			name:"填写用户名",
			type: 'Delay',
			object: '#J_reg_username',
			action: 'val',
			param: 'd:username'
		},
		{
			name: "没有想好",
			type: 'Delay',
			object: 'div.reg_cont_wrap > div.reg_cont > form#J_register_form > div.reg_form > dl > dt:eq(1)',
			action: 'click',
			delay: 100
		},
		{
			name:"填写密码",
			type: 'Delay',
			object: '#J_reg_password',
			action: 'val',
			param: 'd:password'
		},
		{
			name:"重新填写密码",
			type: 'Delay',
			object: '#J_reg_repassword',
			action: 'val',
			param: 'd:password'
		},
		{
			name:"填写邮箱",
			type: 'Delay',
			object: '#J_reg_email',
			action: 'val',
			param: 'd:email'
		},
		{
			name:"提交",
			type: 'Delay',
			object: '.btn.btn_big.btn_submit.mr20',
			action: 'click'
		},
		{
			name:"退出/恭喜您",
			type: 'Event',
			object: 'a:contains(退出)',
			action: 'click',
			condition: ':contains(恭喜您)',
			overtime: 20000
		}
	]
});
OC.play();
setTimeout(function(){OC.pause();},2000);
OC.getProcessList();
OC.getProgramList();
OC.next();
